package com.zhhs.galaxyott.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

public abstract class BaseActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        // 去除title.
        requestWindowFeature(Window.FEATURE_NO_TITLE);

        // 去掉Activity上面的状态栏.
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

        dealLogicBeforeInitView();
        onCreateView();
        dealLogicAfterInitView();
    }

    protected void dealLogicAfterInitView() {

    }

    protected abstract void onCreateView();

    protected void dealLogicBeforeInitView() {

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

    @Override
    protected void onPause() {
        super.onPause();
    }

    @Override
    protected void onResume() {
        super.onResume();
    }

}
